package com.study.mike.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.mike.model.dto.QueryUserRoleDTO;
import com.study.mike.model.entity.UserRole;
import com.study.mike.model.dto.UserRoleDTO;
import com.study.mike.model.po.GetUserRolePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author KangHui
 * @Date 2022/8/5 15:45
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 用户授予角色列表
     * @param getUserRolePO
     * @return
     */
    List<UserRoleDTO> query(@Param(value = "getUserRolePO") GetUserRolePO getUserRolePO);

    /**
     * 用户-资源树treeInfo
     * @param getUserRolePO
     * @return
     */
    List<QueryUserRoleDTO> userRoleList(@Param(value = "getUserResourcePO") GetUserRolePO getUserRolePO);

    /**
     * 用户资源树
     */
}
